<html>
<head>
<meta charset="UTF-8">
<title>系统应用信息新增</title>
	<link id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/css/esaas-easyui-add.css" rel="stylesheet" type="text/css"/>
	<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
	<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
	<script src="../../ffres/dict/all.js" type="text/javascript"></script>
	<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	<form id="ff" method="post">
		<div class="esaas-info-title">系统应用信息信息</div>
		<table class="esaas-info-add-table">
			<tr hidden="true">
				<td width="15%" align="right">应用标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="appId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">应用代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="appCode" data-options="required:true"
									   style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">应用名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="appName" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>

			</tr>
			<tr>
				<td width="15%" align="right">架构类型：</td>
				<td width="35%"><select class="easyui-combobox"
										id="archType" name="archType"
										style="width: 100%; height: 25px;"
										data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:ARCH_TYPE">
				</select></td>
				<td width="15%" align="right">应用版本：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="appVersion" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>

			</tr>
			<tr>
				<td width="15%" align="right">GIT仓库路径：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="gitUrl" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">JDK版本：</td>
				<td width="35%"><select class="easyui-combobox"
					id="jdkVersion" name="jdkVersion"
					style="width: 100%; height: 25px;"
					data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:JDK_VERSION">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">应用排列顺序：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   name="appOrder" data-options="required:true"
									   style="width: 100%; height: 25px;"></input></td>

			</tr>
			<tr>
				<td width="15%" align="right">应用说明：</td>
				<td width="100%" rowspan="2" colspan="3"><input class="easyui-textbox" data-options="multiline:true" type="textarea"
														name="appDesc"
														style="width: 100%;height: 40px"></input></td>
			</tr>
			<tr hidden="true">
				<td width="15%" align="right">所属系统：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
									   id="subsCode" name="subsCode" data-options="required:false"
									   style="width: 100%; height: 25px;"></input></td>
			</tr>
<!--			<tr hidden="true">-->
<!--				<td width="15%" align="right">创建人：</td>-->
<!--				<td width="35%"><input class="easyui-textbox" type="text"-->
<!--					name="createUser" data-options="required:false"-->
<!--					style="width: 100%; height: 25px;"></input></td>-->
<!--				<td width="15%" align="right">创建时间：</td>-->
<!--				<td width="35%"><input class="easyui-textbox" type="text"-->
<!--					name="createTime" data-options="required:false"-->
<!--					style="width: 100%; height: 25px;"></input></td>-->
<!--			</tr>-->
<!--			<tr hidden="true">-->
<!--				<td width="15%" align="right">最后修改人：</td>-->
<!--				<td width="35%"><input class="easyui-textbox" type="text"-->
<!--					name="lastUpdateUser" data-options="required:false"-->
<!--					style="width: 100%; height: 25px;"></input></td>-->
<!--				<td width="15%" align="right">最后更新时间：</td>-->
<!--				<td width="35%"><input class="easyui-textbox" type="text"-->
<!--					name="lastUpdateTime" data-options="required:false"-->
<!--					style="width: 100%; height: 25px;"></input></td>-->
<!--			</tr>-->
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>
		$(function() {
			addTitle("登记");
			var subsCode = $.getUrlParam("subsCode");
			$('#subsCode').textbox("setValue",subsCode);

		});

		function submitForm() {
			if (!$('#ff').form('validate')){
				return;
			}

			var jsonData = $("#ff").serializeJson();
			$.restfulPostJson('../../api/sys/apps/info', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm() {
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>